package io.renren.po;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 统计信息原始表
 *
 * @author schen
 *
 */
@TableName("stats")
public class Stats implements Serializable {
    private static final long serialVersionUID = 8402219030787969826L;

    /**
     * ID
     */
    @TableId
    private long id;

    //应用id
    private String applicationId;
    //用户名
    private String username;
    //时间戳
    private Date timestamp;
    //事件类型
    private String action;
    //事件数值
    private String value;

    public Stats() {
		super();
	}

	public Stats(String applicationId, String username,
                 String action, String value) {
		super();
		this.applicationId = applicationId;
		this.username = username;
		this.timestamp = new Date();
		this.action = action;
		this.value = value;
	}

	public String getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
